package com.yonyou.gmmc.service.JDInterface.thread;

import java.util.List;

import org.apache.log4j.Logger;

import com.yonyou.gmmc.service.JDInterface.model.TmTpProductPoolTemp;
/** 放鸡蛋线程 */  
public class AddBaseThread implements Runnable {
	private Logger logger = Logger.getLogger(AddBaseThread.class);
	private static Integer DUMMY = 0;
	private List<TmTpProductPoolTemp> pool;  
    private BaseThread plate; 
    public AddBaseThread(BaseThread plate,List<TmTpProductPoolTemp> pool) {  
        this.plate = plate;  
        this.pool = pool;  
    }  

    public void run() {  
    	logger.info("AddJdPriceThread>>>>>>>>>>>>start....."+Thread.currentThread().getName());
    	
    	for (TmTpProductPoolTemp p : pool) {
    		if(p.getPageNum()!=null && !"".equals(p.getPageNum())){
    			plate.putEgg(p.getPageNum()); 
    		}
    		
    	}
    	plate.putEgg(DUMMY); 
    	logger.info("AddJdPriceThread>>>>>>>>>>>>end....."+Thread.currentThread().getName());
    } 
}
